/**
* AutoSWF - Cody Cushing. March 26, 2009
* Copyright (c) 2009 Cody Cushing
* No use restrictions. Maintain this notice in all versions. 
**/

package com.autoswf.core
{
	import flash.events.Event;
	import flash.utils.Dictionary;

	public class MockLink implements ILink
	{
		private var _id:String;
		private var _addParentLinkResult:ILink;
		private var _addChildLinkResult:ILink;
		private var _sendUpChainResult:Object;
		private var _sendDownChainResult:Object;
		
		
		public function MockLink(id:String)
		{
			_id = id;
		}

		public function get id():String
		{
			return _id;
		}
		
		public function addParentLink(link:ILink):void
		{
			_addParentLinkResult = link;
		}
		public function removeParentLink(parentLink:ILink):void
		{
			
		}
				
		public function addChildLink(link:ILink):void
		{
			_addChildLinkResult = link;
		}

		public function removeChildLink(link:ILink):void
		{
			
		}
		
		public function sendUp(object:*):void
		{
			_sendUpChainResult = object;
		}
		
		public function sendDown(object:*):Object
		{
			_sendDownChainResult = object;
			
			return null;
		}
		
		public function get addParentLinkResult():ILink
		{
			return _addParentLinkResult;
		}
		
		public function get addChildLinkResult():ILink
		{
			return _addChildLinkResult;
		}
		
		public function get sendUpResult():Object
		{
			return _sendUpChainResult;
		}
		
		public function get sendDownResult():Object
		{
			return _sendDownChainResult;
		}
		
	}
}